import java.util.Scanner;

public class test_2023_4_14 {
    public static void main(String args[]) {
        int k, i=3, j=4;
        k=i+j;
        System.out.println("在复合块外的输出	k="+k);
        {
            float f;
            f=j+4.5F;
            i++;
            System.out.println("在复合块内的输出	f="+f);
            System.out.println("在复合块内的输出	k="+k);
        }
        System.out.println("在复合块外的输出	i="+i);
    }
    public static void main7(String[] args) {
        int k, i=3, j=4;
        k=20*8/4+i+j*i;
        System.out.println("表达式（20*8/4+i+j*i）＝"+k);
    }
    public static void main6(String[] args){
        int a=9;
        int b=6;
        int c=6;
        boolean d,e,f = false,g = false;
        d=!(a>b);            //false
        e=(a>b)&&(a>c);      //ture
        boolean h=b>=c;     //ture
        boolean i=b<=c;     //ture
        boolean j=a==b;     //false
        System.out.println("d="+d);
        System.out.println("e="+e);
        System.out.println("f="+f);
        System.out.println("g="+g);
        System.out.println("h="+h);
        System.out.println("i="+i);
        System.out.println("j="+j);
    }
    public static void main5(String[] args){
        int a = 9;
        int b = 6;
        int c = 6;
        boolean d = a > b;
        boolean e= a < b;
        boolean f= b == c;
        boolean g= b != c;

        f = (b==c)||(a<b);
        g = (b==c)&&(a<b);
        System.out.println("d="+d);
        System.out.println("e="+e);
        System.out.println("f="+f);
        System.out.println("g="+g);
    }
        public static void main4(String [] args) {
            int y = 36;
            int x = 25;
            System.out.println("x="+x);
            {
                System.out.println("x="+x);
                System.out.println("y="+y);
            }
            System.out.println("x="+x);
            System.out.println("y="+y);
        }
    public static void main3(String[] args) {
        System.out.printf("int\t类型的取值范围：%d~%d\n", Integer.MAX_VALUE, Integer.MIN_VALUE);
        System.out.printf("short\t类型的取值范围：%d~%d\n", Short.MAX_VALUE, Short.MIN_VALUE);
        System.out.printf("double\t类型的取值范围：%f~%f\n", Double.MAX_VALUE, Double.MIN_VALUE);
        System.out.printf("float\t类型的取值范围：%f~%f\n", Float.MAX_VALUE, Float.MIN_VALUE);
        System.out.printf("byte\t类型的取值范围：%d~%d\n", Byte.MAX_VALUE, Byte.MIN_VALUE);
        System.out.printf("long\t类型的取值范围：%d~%d\n", Long.MAX_VALUE, Long.MIN_VALUE);
        System.out.printf("char\t类型的取值范围：%c~%c\n", Character.MAX_VALUE, Character.MIN_VALUE);
        System.out.printf("boolean\t类型的取值范围：%s~%s\n", true, false);
    }
    public static void main2(String[] args) {
        Scanner in = new Scanner(System.in);
        int a = in.nextInt();
        in.nextLine();
        String b = in.nextLine();
        System.out.println(a);
        System.out.println(b);
    }
    public static void main1(String[] args) {
        System.out.println("Welcome to java");
        System.out.println("Welcome to Computer Science");
        System.out.println("Programing is fun");
    }
}
